﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Proggy.Web.Cms.Service;
using Proggy.Web.Cms.Configuration;

namespace Proggy.Sandbox.TestEmailServiceConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            // create config
            var config = new EmailConfiguration
            {
                
            };

            // get service
            var service = new EmailService(config);

            // error str
            var errorMsg = string.Empty;

            // send email
            if (service.SendBasicEmail(true, "This is a subject", "<h1>TITLE</h1><p>Hello</p>", "test@test.com", ref errorMsg))
            {
                Console.WriteLine("Message sent");
            }
            else {
                Console.WriteLine("Message not sent: {0}", errorMsg);
            }

            
        }
    }
}
